package com.lzp.wechat.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource(value = {"classpath:weixin.properties"}, encoding = "UTF-8")
public class WeiXinParameter {

    @Value("${weixin.appid}")
    private String appId;

    @Value("${weixin.appsecret}")
    private String appSecret;

    @Value("${weixin.token}")
    private String token;

    @Value("${weixin.getAccessTokenUrl}")
    private String accessTokenUrl;

    @Value("${weixin.createMenuUrl}")
    private String createMenuUrl;

    @Value("${weixin.setIndustryUrl}")
    private String setIndustryUrl;

    @Value("${weixin.getIndustryUrl}")
    private String getIndustryUrl;

    @Value("${weixin.sendTemplateMessageUrl}")
    private String sendTemplateMessageUrl;

    @Value("${weixin.mediaUploadUrl}")
    private String mediaUploadUrl;

    @Value("${weixin.mediaGetUrl}")
    private String mediaGetUrl;

    @Value("${weixin.getQrCodeTicketUrl}")
    private String getQrCodeTicketUrl;

    @Value("${weixin.showQrCodeUrl}")
    private String showQrCodeUrl;

    @Value("${weixin.getUserInfoByOpenIdUrl}")
    private String getUserInfoByOpenIdUrl;

    @Value("${weixin.authorizeUrl}")
    private String authorizeUrl;

    @Value("${weixin.authorizeAccessTokenUrl}")
    private String authorizeAccessTokenUrl;

    @Value("${weixin.redirect_uri}")
    private String redirect_uri;

}
